package com.whu.waterworks.action;

import java.util.List;
import com.opensymphony.xwork2.ActionSupport;
import com.whu.waterworks.model.WaterPlant;
import com.whu.waterworks.service.WaterPlantService;
/**
 * 得到所有的水厂信息
 * @author wangying
 *
 */
public class GetAllWaterPlant extends ActionSupport{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private WaterPlantService waterPlantService;
	private List<WaterPlant> waterPlants;
	
	@Override
	public String execute() throws Exception {
		// TODO Auto-generated method stub
		waterPlants = waterPlantService.getAllWaterPlants();
		 
		return super.execute();
	}

	public WaterPlantService getWaterPlantService() {
		return waterPlantService;
	}

	public void setWaterPlantService(WaterPlantService waterPlantService) {
		this.waterPlantService = waterPlantService;
	}

	public List<WaterPlant> getWaterPlants() {
		return waterPlants;
	}

	public void setWaterPlants(List<WaterPlant> waterPlants) {
		this.waterPlants = waterPlants;
	}

	

}
